import java.util.ArrayList;
import java.util.Collections;

import employee.Employee;


public class Comparable {
	public static void main(String[] felight){
		ArrayList<Employee> emplist = new ArrayList<Employee>();
		emplist.add(new Employee(10, "mysore","male","jack Sparrow"));
		emplist.add(new Employee(9, "bijapur","male","satish"));
		emplist.add(new Employee(8, "gulbraga","female","shweta"));
		emplist.add(new Employee(3, "chitradurga","male","ravi"));
		emplist.add(new Employee(2, "manglore","female","pooja"));
		emplist.add(new Employee(1, "udupi","female","anita"));
		emplist.add(new Employee(13, "belgaum","male","sidd"));
		System.out.println("Unsorted:" + emplist);
		Collections.sort(emplist);
		System.out.println("Sorted:" + emplist);
	}
	}

